package OnTap;

import java.util.Scanner;

public class Bai13 {

	/**
	 * @param args
	 */
	public static byte Tong(byte a, byte b){
		return (byte) (a + b);
	}
	
	public static short Tong(short a, short b){
		return (short) (a + b);
	}
	
	public static int Tong(int a, int b){
		return a + b;
	}
	
	public static long Tong(long a, long b){
		return a + b;
	}
	
	public static float Tong(float a, float b){
		return a + b;
	}
	
	public static double Tong(double a, double b){
		return a + b;
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner s = new Scanner (System.in);
		System.out.print("Nhập số thứ nhất: ");
		float a = s.nextFloat();
		System.out.print("Nhập số thứ hai: ");
		float b = s.nextFloat();
		System.out.print("Tổng: " + Tong(a, b));
	}

}
